package com.atguigu.gulimail.member.service;

import com.atguigu.gulimail.member.exception.PhoneExistException;
import com.atguigu.gulimail.member.exception.UsernameExistException;
import com.atguigu.gulimail.member.vo.GiteeAccessToken;
import com.atguigu.gulimail.member.vo.GiteeUserInfo;
import com.atguigu.gulimail.member.vo.MemberLoginVo;
import com.atguigu.gulimail.member.vo.MemberRegistryVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author wangliou
 * @email wangliou@gmail.com
 * @date 2021-12-11 14:05:20
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void registry(MemberRegistryVo vo);

    void checkPhoneUnique(String phone) throws PhoneExistException;

    void checkUsernameUnique(String username) throws UsernameExistException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity login(GiteeAccessToken giteeAccessToken) throws Exception;
}

